package com.ghp.common.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

import static com.ghp.common.constants.ErrorMessageConstants.PARAMS_NOT_NULL;

/**
 * @author ghp
 * @title
 * @description
 */
@ApiModel(description = "查询ID")
@Data
public class QueryIdDTO {
    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "查询记录的id", required = true)
    @NotNull(message = PARAMS_NOT_NULL)
    private Long id;
}
